-- GENERATED SPELL FOR [Hive'Zara Collector] --


function spell0_15319(pUnit, Event) --@Deafening Screech,n/a--
pUnit:FullCastSpellOnTarget(3589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15319', 8295, 1)
end

function spell1_15319(pUnit, Event) --@Web Spray,n/a--
pUnit:FullCastSpellOnTarget(12252,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15319', 10313, 1)
end

function Sorts_15319(pUnit, Event)
local choix_sorts_15319 = math.random(0, 1)
if choix_sorts_15319 == 0 then
pUnit:RegisterEvent('spell0_15319', 1, 1)
end
if choix_sorts_15319 == 1 then
pUnit:RegisterEvent('spell1_15319', 1, 1)
end
end

function mob15319_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15319', math.random(1500, 3000), 1)
end

function mob15319_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15319_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15319_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15319, 1, 'mob15319_Action')
RegisterUnitEvent(15319, 2, 'mob15319_Leave')
RegisterUnitEvent(15319, 3, 'mob15319_Kill')
RegisterUnitEvent(15319, 4, 'mob15319_Die')
